package com.woniu.service.imple;

import com.woniu.adapter.PersonBusinessAdapter;
import com.woniu.outlet.po.*;
import com.woniu.service.IPersonBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonBusinessService implements IPersonBusinessService {

    @Autowired
    private PersonBusinessAdapter personBusinessAdapter;

    //查看个人用户的银行卡的信息
    @Override
    public List<PersonCard> findpersoncard(Integer wokerid,Integer personid) {
        return personBusinessAdapter.findpersoncard(wokerid, personid);
    }

    //查看个人大的银行卡交易记录
    @Override
    public List<PersonCardTransfer> findPersonCardTransfer(String personcardNum) {
        return personBusinessAdapter.findPersonCardTransfer(personcardNum);
    }

    //查看个人的活期账户信息
    @Override
    public List<PersonCurrentAccount> findPersonCurrentAccount(Integer wokerid, Integer personid) {
        List<PersonCurrentAccount> personCurrentAccount = personBusinessAdapter.findPersonCurrentAccount(wokerid, personid);
        return personCurrentAccount;
    }

    //查看个人的活期账户的交易记录
    @Override
    public List<PersonCurrentTransfer> findPersonCurrentTransfer(String personcurrentAccount) {
        List<PersonCurrentTransfer> personCurrentTransfer = personBusinessAdapter.findPersonCurrentTransfer(personcurrentAccount);
        return personCurrentTransfer;
    }

    //查看个人的定期的账户
    @Override
    public List<PersonRegularAccount> findPersonRegularAccount(Integer wokerid, Integer personid) {
        List<PersonRegularAccount> personRegularAccount = personBusinessAdapter.findPersonRegularAccount(wokerid, personid);
        return personRegularAccount;
    }

    //查看个人定期账户的交易记录
    @Override
    public List<PersonRegularTransfer> findPersonRegularTransfer(String personregularAccount) {
        List<PersonRegularTransfer> personRegularTransfer = personBusinessAdapter.findPersonRegularTransfer(personregularAccount);
        return personRegularTransfer;
    }
}
